package com.geekaca.d2;

import java.util.Scanner;

public class TestInput {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入名字: ");
        String next = scanner.next();
        System.out.println("您输入了: " + next);

        System.out.println("请输入年龄: ");
        int age = scanner.nextInt();
        System.out.println("您输入了: " + age);

        System.out.println("请输入消费金额: ");
        double costMoney = scanner.nextDouble();
        System.out.println("您消费了: " + costMoney);

    }
}
